package com.yl.auth.service;



import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yl.auth.model.entity.Yuangong;
import com.yl.auth.model.vo.LaorenVo;
import com.yl.auth.model.vo.YuaGongPaiBanVo;
import com.yl.auth.model.vo.YuangongQueryVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2023-06-15
 */
public interface YuangongService extends IService<Yuangong> {

    List<Yuangong> findAll(YuangongQueryVo yuangong);
    //根据员工查询护工信息
    IPage<Yuangong> findAllhugong(Page<Yuangong> page1, Yuangong yuangong);

    Yuangong getByIdhugong(Integer id);

    void updateyuangong(Long id);

    List<Yuangong> listPaiBan(YuaGongPaiBanVo yuaGongPaiBanVo);

    IPage<Yuangong> getygList(Page<Yuangong> page,Yuangong yuangong);

    Yuangong getByName(String name);

    void updateyuan(Integer id);

    List<Yuangong> getYuangong(YuangongQueryVo yuangong);

    Page<Yuangong> getAllAndPage(Integer page, Integer limit, Yuangong yuangong);

    Yuangong getByID(Long id);

    List<Integer> getBuMenById(Integer id);

    List<Integer> getGangWeiById(Integer usersId);

    void savelaoren(Integer id1, Long id);

    Yuangong login(Yuangong yuangong);

    Yuangong login(String account, String password);

    void updatePassWord(Yuangong yuangong);

    void updateUsers(Yuangong yuangong);


    void addXinzi(Yuangong yuangong);

    void deleteById(Long id,Yuangong yuangong);


}
